# 1.导模块
from pptx import Presentation

# 2.创建文稿
pre = Presentation()

# 标注 变量的类型
from pptx.presentation import Presentation
pre:Presentation = pre

# 3.添加幻灯片 --设置样式
slide_style = pre.slide_layouts[7]
pre.slides.add_slide(slide_style)

slide_style0 = pre.slide_layouts[4]
pre.slides.add_slide(slide_style0)

slide_style2 = pre.slide_layouts[5]
pre.slides.add_slide(slide_style2)

slide_style3 = pre.slide_layouts[6]
pre.slides.add_slide(slide_style3)

slide_style8 = pre.slide_layouts[8]
pre.slides.add_slide(slide_style8)





# 4.保存文稿
pre.save('05slidestyle.pptx')


print('添加不同样式的幻灯片!')